package com.jarvis.pzz.modules.releasedemand.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jarvis.pzz.R;
import com.jarvis.pzz.models.MyCollectModel;

import java.util.List;

/**
 * Created by Administrator on 2017/9/16 0016.
 */

public class ReleaseDemandAdapter extends BaseQuickAdapter<MyCollectModel.requirementListBean> {

    public ReleaseDemandAdapter(int layoutResId, List<MyCollectModel.requirementListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, MyCollectModel.requirementListBean releseDemandModel) {
        baseViewHolder
                .setText(R.id.tv_title,releseDemandModel.getReqTitle())
                .setText(R.id.tv_date, releseDemandModel.getReqCreatetime())
                .setText(R.id.tv_area, releseDemandModel.getReqMeasureArea()+"㎡")
                .setText(R.id.tv_rent, releseDemandModel.getReqRent())
                .setText(R.id.tv_district,releseDemandModel.getReqAddress());

    }
}
